package com.yuyou.train.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.train.service.api.user.entity.UserThoughts;
import com.yuyou.train.util.bean.Pagination;

@Mapper
public interface UserThoughtsMapper {
    int deleteByPrimaryKey(String id);

    int insert(UserThoughts record);

    UserThoughts selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserThoughts record);
    
	List<UserThoughts> findUserThoughtsByUserId(String userId);

	 List<UserThoughts> findUserThoughtsPageList(Pagination<UserThoughts> p);

	 int findUserThoughtsPageCount(Pagination<UserThoughts> p);
	 
	 UserThoughts selectUserThoughts(
			 @Param(value="userId")String userId,
			 @Param(value="lessonId")String lessonId);
    
    
}